package com.zecan.blog.service;

import com.zecan.blog.entity.Article;
import com.zecan.blog.entity.Classify;
import com.zecan.blog.vo.article.ArticleMsgVo;

import java.util.List;

/**
 * @ClassName ClassifyService
 * @Description
 * @date 2022/11/3 17:56
 * @Version 1.0
 */

public interface ClassifyService {

    /**
     * 查询所有分类数据
     * @return
     */
    List<Classify> selectClassifyAll();

    /**
     * 根据分类id 获取对应的文章信息
     * @return
     */
    List<ArticleMsgVo>  selectArticleListByClassifyId(Integer classifyId,String classifyName,Integer offset, Integer limit);

    /**
     * 获取分类数量
     * @return
     */
    Integer getClassifyListCount();

    /**
     * 添加分类
     * @param newClassifyName
     */
    void insertClassify(String newClassifyName);

    void updateClassifyName(Integer classifyId, String newClassifyName);

    void deleteClassify(Integer classifyId);
}
